import { IsOptional, IsString } from "class-validator"
import { Menu } from "../entities/menu.entity"
import { Meta } from "../entities/meta.entity"

export class CreateMenuDto {
  @IsString()
  name: string

  @IsString()
  path: string

  @IsOptional()
  component: string

  @IsOptional()
  metaId: string

  @IsOptional()
  meta: Meta

  @IsOptional()
  parentId: string

  @IsOptional()
  parent: any

  @IsOptional()
  children: any
}